package cn.wowjoy.pda.android_pharmacy.mvvm.presenter;

import java.util.ArrayList;

import cn.wowjoy.pda.android_pharmacy.api.ApiService;
import cn.wowjoy.pda.android_pharmacy.common.core.BasePresenter;
import cn.wowjoy.pda.android_pharmacy.common.widget.MDialog;
import cn.wowjoy.pda.android_pharmacy.model.xmlEntity.putInfo.PutSingleBeen;
import cn.wowjoy.pda.android_pharmacy.mvvm.vm.InHospitalPutHandViewModel;

/**
 * Created by Administrator on 2017/8/29.
 */

public class InHospitalPutHandPresenter extends BasePresenter<InHospitalPutHandViewModel> {
    ArrayList<PutSingleBeen> FitstTotal;
    //    private ArrayList<DoorPatientInfoBeen> mTestBeen=new ArrayList<>();
    private ApiService mApiService;
    private MDialog waitDialog;
    public String DJJLID;

    @Override
    public void onCreatePresenter() {
        loadData();
    }


    public void loadData() {
        FitstTotal = (ArrayList<PutSingleBeen>) activity.getIntent().getExtras().getSerializable("total");
//        DJJLID = activity.getIntent().getExtras().getString("DJJLID");
//        Log.e("PXY", "DoorPatientInfoBeenList: " + FitstTotal.toString());
        if (FitstTotal != null) {
            viewModel.show(FitstTotal);
        }
    }
}
